package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_OrganizationInfo", catalog="Id")
public class TsOrganizationInfo extends BaseEntity<TsOrganizationInfo> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="Pguid", nameJava="pguid", typeDataBase="varchar")
	private String pguid;
	@YsField(nameDataBase="Orgid", nameJava="orgid", typeDataBase="varchar")
	private String orgid;
	@YsField(nameDataBase="OrgName", nameJava="orgName", typeDataBase="varchar")
	private String orgName;
	@YsField(nameDataBase="OrgKind", nameJava="orgKind", typeDataBase="varchar")
	private String orgKind;
	@YsField(nameDataBase="Cid", nameJava="cid", typeDataBase="varchar")
	private String cid;
	@YsField(nameDataBase="CidName", nameJava="cidName", typeDataBase="varchar")
	private String cidName;
	@YsField(nameDataBase="OrgPath", nameJava="orgPath", typeDataBase="varchar")
	private String orgPath;
	@YsField(nameDataBase="OrgPathName", nameJava="orgPathName", typeDataBase="varchar")
	private String orgPathName;
	@YsField(nameDataBase="OrgPathAll", nameJava="orgPathAll", typeDataBase="varchar")
	private String orgPathAll;
	@YsField(nameDataBase="OrgPathNameAll", nameJava="orgPathNameAll", typeDataBase="varchar")
	private String orgPathNameAll;
	@YsField(nameDataBase="OrgManagers", nameJava="orgManagers", typeDataBase="varchar")
	private String orgManagers;
	@YsField(nameDataBase="OrgManagersAll", nameJava="orgManagersAll", typeDataBase="varchar")
	private String orgManagersAll;
	@YsField(nameDataBase="IconClass", nameJava="iconClass", typeDataBase="varchar")
	private String iconClass;
	@YsField(nameDataBase="Deleted", nameJava="deleted", typeDataBase="bit")
	private Integer deleted;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="UpdateUser", nameJava="updateUser", typeDataBase="varchar")
	private String updateUser;
	@YsField(nameDataBase="levels", nameJava="levels", typeDataBase="int")
	private Integer levels;
	@YsField(nameDataBase="maxlevels", nameJava="maxlevels", typeDataBase="int")
	private Integer maxlevels;
	@YsField(nameDataBase="DeptPath", nameJava="deptPath", typeDataBase="varchar")
	private String deptPath;
	@YsField(nameDataBase="DeptPathName", nameJava="deptPathName", typeDataBase="varchar")
	private String deptPathName;
	@YsField(nameDataBase="DeptName", nameJava="deptName", typeDataBase="varchar")
	private String deptName;
	@YsField(nameDataBase="HeadUserId", nameJava="headUserId", typeDataBase="varchar")
	private String headUserId;
	@YsField(nameDataBase="NodeLft", nameJava="nodeLft", typeDataBase="int")
	private Integer nodeLft;
	@YsField(nameDataBase="NodeRgt", nameJava="nodeRgt", typeDataBase="int")
	private Integer nodeRgt;
	@YsField(nameDataBase="Floor", nameJava="floor", typeDataBase="int")
	private Integer floor;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsOrganizationInfo setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TsOrganizationInfo setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getGuid() {
		return guid;
	}
	public TsOrganizationInfo setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getPguid() {
		return pguid;
	}
	public TsOrganizationInfo setPguid(String pguid) {
		this.pguid = pguid;
		return this;
	}
	public String getOrgid() {
		return orgid;
	}
	public TsOrganizationInfo setOrgid(String orgid) {
		this.orgid = orgid;
		return this;
	}
	public String getOrgName() {
		return orgName;
	}
	public TsOrganizationInfo setOrgName(String orgName) {
		this.orgName = orgName;
		return this;
	}
	public String getOrgKind() {
		return orgKind;
	}
	public TsOrganizationInfo setOrgKind(String orgKind) {
		this.orgKind = orgKind;
		return this;
	}
	public String getCid() {
		return cid;
	}
	public TsOrganizationInfo setCid(String cid) {
		this.cid = cid;
		return this;
	}
	public String getCidName() {
		return cidName;
	}
	public TsOrganizationInfo setCidName(String cidName) {
		this.cidName = cidName;
		return this;
	}
	public String getOrgPath() {
		return orgPath;
	}
	public TsOrganizationInfo setOrgPath(String orgPath) {
		this.orgPath = orgPath;
		return this;
	}
	public String getOrgPathName() {
		return orgPathName;
	}
	public TsOrganizationInfo setOrgPathName(String orgPathName) {
		this.orgPathName = orgPathName;
		return this;
	}
	public String getOrgPathAll() {
		return orgPathAll;
	}
	public TsOrganizationInfo setOrgPathAll(String orgPathAll) {
		this.orgPathAll = orgPathAll;
		return this;
	}
	public String getOrgPathNameAll() {
		return orgPathNameAll;
	}
	public TsOrganizationInfo setOrgPathNameAll(String orgPathNameAll) {
		this.orgPathNameAll = orgPathNameAll;
		return this;
	}
	public String getOrgManagers() {
		return orgManagers;
	}
	public TsOrganizationInfo setOrgManagers(String orgManagers) {
		this.orgManagers = orgManagers;
		return this;
	}
	public String getOrgManagersAll() {
		return orgManagersAll;
	}
	public TsOrganizationInfo setOrgManagersAll(String orgManagersAll) {
		this.orgManagersAll = orgManagersAll;
		return this;
	}
	public String getIconClass() {
		return iconClass;
	}
	public TsOrganizationInfo setIconClass(String iconClass) {
		this.iconClass = iconClass;
		return this;
	}
	public Integer getDeleted() {
		return deleted;
	}
	public TsOrganizationInfo setDeleted(Integer deleted) {
		this.deleted = deleted;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public TsOrganizationInfo setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public TsOrganizationInfo setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
		return this;
	}
	public Integer getLevels() {
		return levels;
	}
	public TsOrganizationInfo setLevels(Integer levels) {
		this.levels = levels;
		return this;
	}
	public Integer getMaxlevels() {
		return maxlevels;
	}
	public TsOrganizationInfo setMaxlevels(Integer maxlevels) {
		this.maxlevels = maxlevels;
		return this;
	}
	public String getDeptPath() {
		return deptPath;
	}
	public TsOrganizationInfo setDeptPath(String deptPath) {
		this.deptPath = deptPath;
		return this;
	}
	public String getDeptPathName() {
		return deptPathName;
	}
	public TsOrganizationInfo setDeptPathName(String deptPathName) {
		this.deptPathName = deptPathName;
		return this;
	}
	public String getDeptName() {
		return deptName;
	}
	public TsOrganizationInfo setDeptName(String deptName) {
		this.deptName = deptName;
		return this;
	}
	public String getHeadUserId() {
		return headUserId;
	}
	public TsOrganizationInfo setHeadUserId(String headUserId) {
		this.headUserId = headUserId;
		return this;
	}
	public Integer getNodeLft() {
		return nodeLft;
	}
	public TsOrganizationInfo setNodeLft(Integer nodeLft) {
		this.nodeLft = nodeLft;
		return this;
	}
	public Integer getNodeRgt() {
		return nodeRgt;
	}
	public TsOrganizationInfo setNodeRgt(Integer nodeRgt) {
		this.nodeRgt = nodeRgt;
		return this;
	}
	public Integer getFloor() {
		return floor;
	}
	public TsOrganizationInfo setFloor(Integer floor) {
		this.floor = floor;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsOrganizationInfo setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsOrganizationInfo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsOrganizationInfo setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsOrganizationInfo tsOrganizationInfo(
		Long pid,
		String guid,
		String pguid,
		String orgid,
		String orgName,
		String orgKind,
		String cid,
		String cidName,
		String orgPath,
		String orgPathName,
		String orgPathAll,
		String orgPathNameAll,
		String orgManagers,
		String orgManagersAll,
		String iconClass,
		Integer deleted,
		String createUser,
		String updateUser,
		Integer levels,
		Integer maxlevels,
		String deptPath,
		String deptPathName,
		String deptName,
		String headUserId,
		Integer nodeLft,
		Integer nodeRgt,
		Integer floor,
		Integer status
			) {
		TsOrganizationInfo entity = new TsOrganizationInfo();
		entity.setPid(pid);
		entity.setGuid(guid);
		entity.setPguid(pguid);
		entity.setOrgid(orgid);
		entity.setOrgName(orgName);
		entity.setOrgKind(orgKind);
		entity.setCid(cid);
		entity.setCidName(cidName);
		entity.setOrgPath(orgPath);
		entity.setOrgPathName(orgPathName);
		entity.setOrgPathAll(orgPathAll);
		entity.setOrgPathNameAll(orgPathNameAll);
		entity.setOrgManagers(orgManagers);
		entity.setOrgManagersAll(orgManagersAll);
		entity.setIconClass(iconClass);
		entity.setDeleted(deleted);
		entity.setCreateUser(createUser);
		entity.setUpdateUser(updateUser);
		entity.setLevels(levels);
		entity.setMaxlevels(maxlevels);
		entity.setDeptPath(deptPath);
		entity.setDeptPathName(deptPathName);
		entity.setDeptName(deptName);
		entity.setHeadUserId(headUserId);
		entity.setNodeLft(nodeLft);
		entity.setNodeRgt(nodeRgt);
		entity.setFloor(floor);
		entity.setStatus(status);
		return entity;
	}
}